package com.example.newdemo.tv.view;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;

import androidx.annotation.Nullable;

public class FocusableTextView extends androidx.appcompat.widget.AppCompatTextView {

    private boolean isFocus =false;

    public FocusableTextView(Context context) {
        super(context);
    }

    public FocusableTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public FocusableTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public void setFocus(boolean isFocus){
        if (isFocus){
            setTextColor(Color.RED);
        }else {
            setTextColor(Color.BLACK);
        }
    }


}
